import request from '@/utils/request'

// 查询微信客服问题列表
export function listwechatOnlineService(query) {
  return request({
    url: '/business/wechatOnlineService/list',
    method: 'get',
    params: query
  })
}

// 查询微信客服问题详细
export function getwechatOnlineService(id) {
  return request({
    url: '/business/wechatOnlineService/' + id,
    method: 'get'
  })
}

// 新增微信客服问题
export function addwechatOnlineService(data) {
  return request({
    url: '/business/wechatOnlineService',
    method: 'post',
    data: data
  })
}

// 修改微信客服问题
export function updatewechatOnlineService(data) {
  return request({
    url: '/business/wechatOnlineService',
    method: 'put',
    data: data
  })
}

// 删除微信客服问题
export function delwechatOnlineService(id) {
  return request({
    url: '/business/wechatOnlineService/' + id,
    method: 'delete'
  })
}

// 导出微信客服问题
export function exportwechatOnlineService(query) {
  return request({
    url: '/business/wechatOnlineService/export',
    method: 'get',
    params: query
  })
}